<form class="form-horizontal" action="<?= current_url() ?>" method="post" id="form-validate" >
    <div id="validation" class="row-fluid">
        <div class="span12">
            <div class="box corner-all">
                <div class="box-header grd-white color-silver-dark corner-top">
                    <div class="header-control">
                        <a data-box="collapse"><i class="icofont-caret-up"></i></a>

                    </div>
                    <span><?= lang('label_menu_link_options'); ?></span>
                </div>
                <div class="box-body">

                    <fieldset>
                        <legend><?= lang('label_menu_link_options') ?></legend>

                        <?php foreach ($options as $op) { ?>
                        <div class="control-group">
                            <input type="hidden" name="options_type[<?= $op->code ?>]" value="<?= $op->type ?>" />
                            <label class="control-label" for="<?= $op->code ?>"><?= lang('label_' . $op->code) ?></label>
                            <div class="controls">
                                <?php if ($op->type == 'textarea') { ?>
                                <textarea class="grd-white" name="options[<?= $op->code ?>]" id="<?= $op->code ?>" placeholder="<?= lang('label_' . $op->code) ?>" ><?= set_value($op->code, $op->value) ?></textarea>
                                <?php } elseif ($op->type == 'checkbox') { ?>
                                <input style="width: 5%" name="options[<?= $op->code ?>]" id="<?= $op->code ?>" placeholder="<?= lang('label_' . $op->code) ?>" type="<?= $op->type ?>" <?php if ($op->value) echo 'checked' ?> />
                                <?php } else { ?>
                                <input class="grd-white" name="options[<?= $op->code ?>]" id="<?= $op->code ?>" placeholder="<?= lang('label_' . $op->code) ?>" value="<?= set_value($op->code, $op->value) ?>" type="<?= $op->type ?>" />
                                <?php } ?>
                            </div>
                        </div>
                        <?php } ?>
                        
                        <div class="form-actions">
                            <button type="submit" class="btn btn-primary"><?= lang('label_edit') ?></button>
                            <button type="button" class="btn">Cancel</button>
                        </div>
                    </fieldset>


                </div>
            </div>
        </div>
    </div>
</form>